/* 
 * File:   Validation.cpp
 * Author: vikrantsingh
 * 
 * Created on 2 November, 2013, 4:58 PM
 */

#include "Validation.h"
#include "../BufferManager/BufferManager.h"
Validation::Validation() {
}

Validation::Validation(const Validation& orig) {
}

Validation::~Validation() {
}

STATUS_CODE Validation::isValid (){
    		BufferManager *bm = BufferManager::getInstance();
		if (bm->isDBOpen == false) {
			return DATABASE_NOT_OPEN;
		}
		return SUCCESS;

}